package com.blackline.UI.TASKS;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
/**
 * @author XBO
 * @version Feb, 2013
 * <p>This page is after clicking the TASKS > Tasks from Navigation Menu.
 * Please refer to UI.Tasks.png in doc-files. <br>
 * Important: if logged on as 'preparer' OR 'approver', the title of this page is 'Task Status'. <br>
 * Please refer to UI.Tasks(Preparer).png and UI.Tasks(Approver).png in doc-files folder.
 */
public class Tasks {
	/**
	 * Add New Task link
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_lbAddNewGroup")
	public WebElement Add_New_Task_link;
	
	/**
	 * Prev link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_lbPagingPrev")
	public WebElement Prev_link;
	
	/**
	 * Next link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_lbPagingNext")
	public WebElement Next_link;
	
	/**
	 * Page text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_tbGotoPage")
	public WebElement Page_textField;
	
	/**
	 * Go link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_lbGotoPage")
	public WebElement Go_link;
		
	/**
	 * first number in text "Results 1 - 3 of 3", i.e. "1"
	 */
	@FindBy (xpath = "//div[@id='ctl00_ctl00_contentBody_cphMain_DBGrid_Panel2']/strong[1]")
	public WebElement first_number_inResultText;
	
	
	/**
	 * Team filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_TeamCode")
	public WebElement Team_textField;
	
	/**
	 * Entity filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_EntityCode")
	public WebElement Entity_textField;
	
	/**
	 * Key3 filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_Key3")
	public WebElement Key3_textField;
	
	/**
	 * Test filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_Key4")
	public WebElement Test_textField;
	
	/**
	 * Description filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_AccountName")
	public WebElement Description_textField;
	
	/**
	 * Template filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_ReconciliationTypeName")
	public WebElement Template_textField;
	
	/**
	 * Reference filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_AccountReference")
	public WebElement Reference_textField;
	
	/**
	 * Start filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_StartDate")
	public WebElement Start_textField;
	
	/**
	 * End filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_CloseDate")
	public WebElement End_textField;
	
	/**
	 * Due Days filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_DueDateDays")
	public WebElement Due_Days_textField;
	
	/**
	 * Location filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_LocationDisplayName")
	public WebElement Location_textField;
	
	/**
	 * Prep Freq filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_AccountRole1FrequencyName")
	public WebElement Prep_Freq_textField;
	
	/**
	 * Preparer filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_AssignedUserName")
	public WebElement Preparer_textField;
	
	/**
	 *  Apply link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_lbApplyFilters")
	public WebElement Apply_link;
	
	/**
	 *  Clear link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_hlClearFilters")
	public WebElement Clear_link;
	
	/**
	 *  Advanced link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_hlToggleFilters")
	public WebElement Advanced_link;
	
	/**
	 *  Basic link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_hlToggleFilters")
	public WebElement Basic_link;
	
	/**
	 * Edit icon of 1st searched result (suppose only have one result)
	 */
//	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_ctl02_ibEdit")
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_ctl02_hlViewRec")
	public WebElement Edit_iconOf1stResearchedResult;
	
	/**
	 * Status link of 1st searched result (suppose only have one result)<br>
	 * It can be: View/In Prep/Cert/Rej <br>
	 * This means: all the statuses use the same element id.
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_ctl02_hlViewRec")
	public WebElement Status_linkOf1stResearchedResult;
	
//	/**
//	 * View icon of 1st searched result (suppose only have one result)
//	 */
//	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_ctl02_hlViewRec")
//	public WebElement View_iconOf1stResearchedResult;
//	
//	/**
//	 * In Prep link of 1st searched result (suppose only have one result)
//	 */
//	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_ctl02_hlViewRec")
//	public WebElement In_Prep_linkOf1stResearchedResult;
//	
//	/**
//	 * Cert link of 1st searched result (suppose only have one result)
//	 */
//	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_ctl02_hlViewRec")
//	public WebElement Cert_linkOf1stResearchedResult;
//	
//	/**
//	 * Rej link of 1st searched result (suppose only have one result)
//	 */
//	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_ctl02_hlViewRec")
//	public WebElement Rej_linkOf1stResearchedResult;
	

}
